import { createConsola, consola } from 'consola'

// const logPath = './log/shell.log';
// let   log = await Bun.file(logPath).text();

export default createConsola({
  level: 4,
  reporters: [
    {
      async log({type, args}) {
        const time = new Date().toLocaleString();
        // const msg = `[${time}] ${message}`
        consola[type](`[${time}]`, ...args)

        // await Bun.write(logPath, log);
      },
    },
  ],
})
